import 'package:flutter/material.dart';
import 'package:framelib/utils/string_util.dart';
import 'package:get/get.dart';
import 'MyHomePage.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(360, 690),
      minTextAdapt: true,
      splitScreenMode: true,
      builder: (context , child) {
        return GetMaterialApp(
          debugShowCheckedModeBanner: false,
          title: app_name,
          theme: ThemeData(
            colorScheme: ColorScheme.highContrastLight(primary: Colors.blue,),
            appBarTheme: AppBarTheme(
              titleTextStyle: TextStyle(
                  color: Colors.white,
                  fontSize: 18.sp,
                fontWeight: FontWeight.w500
              ),
            ),
            useMaterial3: true
          ),
          home: child,
        );
      },
      child: const MyHomePage(title: app_name),
    );
  }
}

